<?php
        $baseurl = current(split("index", $_SERVER['PHP_SELF']));
        echo "<p class='banner' align='right' onmousedown='tekan(event);' onmousemove='gerak(event);' onmouseup='lepas();' onmouseout='lepas();'> <a href='Javascript:close_slip()'> <img src='".$baseurl."/img/no4.gif' alt='[ X ]'> </a></p>";
            echo "<form id='edit_jobs'>";
            echo "<table>";
                echo "<tr><td>ID  </td><td>: ".$this->data['Job']['id']."</td></tr>";
                echo "<input type='hidden' name='data[Job][id]' value='".$this->data['Job']['id']."'>";
                
                echo "<tr><td>Position  </td><td>: <input type='text' name='data[Job][position]' value='".$this->data['Job']['position']."'></td></tr>";
                echo "<tr><td>Employer ID  </td><td>: <input type='text' name='data[Job][employer_id]' value='".$this->data['Job']['employer_id']."'></td></tr>";
                echo "<tr><td>Template ID  </td><td>: <input type='text' name='data[Job][template_id]' value='".$this->data['Job']['template_id']."'></td></tr>";
                echo "<tr><td>Academic ID  </td><td>: <input type='text' name='data[Job][academic_id]' value='".$this->data['Job']['academic_id']."'></td></tr>";
                echo "<tr><td>Desc  </td><td>: <input type='text' name='data[Job][desc]' value='".$this->data['Job']['desc']."'></td></tr>";
                echo "<tr><td>Job Desc </td><td>: <input type='text' name='data[Job][jobdesc]' value='".$this->data['Job']['jobdesc']."'></td></tr>";
                echo "<tr><td>Criteria  </td><td>: <input type='text' name='data[Job][criteria]' value='".$this->data['Job']['criteria']."'></td></tr>";
                echo "<tr><td>Note  </td><td>: <input type='text' name='data[Job][note]' value='".$this->data['Job']['note']."'></td></tr>";
                echo "<tr><td>Location  </td><td>: <input type='text' name='data[Job][city_id]' value='".$this->data['Job']['city_id']."'></td></tr>";
                echo "<tr><td>Salary  </td><td>: <input type='text' name='data[Job][salary]' value='".$this->data['Job']['salary']."'></td></tr>";
                echo "<tr><td>Status  </td><td>: <input type='text' name='data[Job][status]' value='".$this->data['Job']['status']."'></td></tr>";
                echo "<tr><td>Slip  </td><td>: <input type='text' name='data[Job][slip]' value='".$this->data['Job']['slip']."'></td></tr>";
                echo "<tr><td>Created  </td><td>: <input type='text' name='data[Job][created]' value='".$this->data['Job']['created']."'></td></tr>";
                echo "<tr><td>End Date  </td><td>: <input type='text' name='data[Job][end_date]' value='".$this->data['Job']['end_date']."'></td></tr>";


                echo "<tr><td></td><td>  &nbsp";
                echo $ajax->submit('Save', array('div' => false, 'class' => 'submitbutton', 
                                    'url' => array('controller'=> 'jobs','action' => 'edit_admin'), 
                                    'update' => 'result')
                                    );                                    
                                    
                                    
                echo " <input type='button' onClick='close_slip();' value='Cancel'></td></tr>";
            echo "</table>";
            echo "</form>";
?>